<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@include file="cabecera.jsp" %>
 
 <%@page import="studio.negocio.SeguridadSala,java.util.*" %>
  <%@page import="studio.modelo.Sala" %>
  <% 
	SeguridadSala negSala = new SeguridadSala();
  
    Collection<Sala> lstSala = new ArrayList<Sala>();
    lstSala=negSala.buscarSala("");
    request.setAttribute("ListadoSala",lstSala );
//    for (Sala x : lstSala) {
//	out.println("<li>" + x.getCaracteristicas() + "</li>");
//}
    %>
 <style type="text/css">
.class1 A:link {text-decoration: none}
.class1 A:visited {text-decoration: none}
.class1 A:active {text-decoration: none}
.class1 A:hover {text-decoration: none; color: red;}
.class1 A img{border: none;}


.class2 A:link {text-decoration: underline overline}
.class2 A:visited {text-decoration: underline overline}
.class2 A:active {text-decoration: underline overline}
.class2 A:hover {text-decoration: underline; color: green;}
</style>
   <form name="LstSala" method="post">
   <table class="links">
   <tr>
   <th><font></font></th>
   <th><font class="labels">Sala</font></th>
   <th><font class="labels">Local</font></th>
   <th><font class="labels">Capacidad</font></th>
   <th><font class="labels">Caracteristicas</font></th></tr>
   <c:forEach items="${requestScope.ListadoSala}"  var="p" varStatus="i" >
   <tr><td><span class="class1"><a href="obtenerSala?id=${p.idSala}"><img src="imagenes/edit.png" style="height: 20px; width: 20px;"/></a></span></td>
   <td><font class="labels">${p.nombreSala}</font></td>
   <td><font class="labels">${p.objLocal.nombreLocal}</font></td>
   <td><font class="labels">${p.getCapacidad()}</font></td>
   <td><font class="labels">${p.getCaracteristicas()}</font></td>
   </tr>
   </c:forEach>
   </table> 
   <span class="class1">
  <a href="RegistrarSala.jsp?accion=n">Nueva Sala</a>
   </span>
   </form> 
<%@include file="pie.jsp" %>